#include <bits/stdc++.h>
using namespace std;

#define MAXSIZE 255

void Inverse(char A[]){
    static int i = 0;
    char ch;
    cin >> ch;
    if(ch != '.'){
        Inverse(A);
        A[i++] = ch;
    }
    A[i] = '\0';
}

void Print(char A[]){
    cout << A[0];
    for(int i = 1; i < strlen(A); i++){
        cout << "-->" << A[i];
    }
    cout << '\n';
}

int main(){
    char Arr[MAXSIZE];
    Inverse(Arr);
    Print(Arr);
    return 0;
}


/*
  123456789
  ababaaababab
ne011234223456
nv010104210104
*/